﻿using System;

namespace B2C
{
    public partial class Logout : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.Session.RemoveAll();

            if (this.Request.Params["redirecturl"] != null)
            {
                this.Response.Redirect(this.Request.Params["redirecturl"].ToString().Replace("_and_","&"));
            }
            else
            {
                this.Response.Redirect(ResolveUrl("~/Default.aspx"));
            }
        }
    }
}
